@import url(form.css);
@import url(mobile-form-additions.css);
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(../images/background.png);
    background-repeat: repeat-x;
    background-color: #8B4B04;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    line-height: 1.15;
}

/* Container */
.container {
    position: relative;
    max-width: 742px;
    margin: 0 auto;
}

/* Header */
header {
    width: 100%;
    position: relative;
    background-color: #8B4B04; /* Matches body to cover gaps */
}

#header-image {
    width: 100%;
    max-width: 742px;
    height: 201px;
    display: block;
}


/* Asides */
#phone {
    position: fixed;
    top: 30px;
    right: 10px; /* Positions phone in the upper-right corner; adjust value as needed */
    color: #fff;
    font-size: 1.15em;
    line-height: 1;
}

#login {
    position: fixed;
    top: 30px;
    left: 10px;
    color: #fff;
    font-size: 1.15em;
    line-height: 1;
}

#login label {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

#login input[type="text"],
#login input[type="password"] {
    width: 100px;
    padding: 5px;
    margin-bottom: 10px;
}

#login input[type="submit"] {
    display: block;
    margin: 0 auto;
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.white { color: white; }


form.login_form .formInputText {width: 26px;}

/* Navigation */
.main-nav {
    width: 100%;
    max-width: 688px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    background-color: #E9DFBB;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 10px;
}

.main-nav li {
    position: relative;
}

/*.main-nav li:not(:last-child)::after {*/
/*    content: "|";*/
/*    color: #000;*/
/*    margin-left: 10px;*/
/*}*/

.main-nav a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.main-nav a:hover {
    color: #444466;
}

/* Dropdown Menu Styling */
.new-navbar ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #E9DFBB;
    list-style: none;
    padding: 10px;
    margin: 0;
    min-width: 150px;
    text-align: left;
}

.new-navbar li:hover > ul {
    display: block;
}

.new-navbar ul li {
    margin: 5px 0;
}

.new-navbar ul li a {
    font-size: 14px;
    color: #0066cc;
    font-weight: normal;
}

.new-navbar ul li a:hover {
    color: #444466;
}

/* Main Content */
main {
    position: relative;
    width: 100%;
    max-width: 688px;
    margin: 0 auto;
    padding: 15px 18px;
    background-color: #E9DFBB;
}

main::before,
main::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 27px;
    background-repeat: repeat-y;
}

main::before {
    left: -27px;
    background-image: url("../images/left-side.gif");
}

main::after {
    right: -27px;
    background-image: url("../images/right-side.gif");
}

h1, h2, h3 {
    color: #412713;
    font-weight: bold;
    margin-bottom: 12px;
}

h1 {
    font-family: Trebuchet, Arial, Helvetica, sans-serif;
    font-size: 40px;
    letter-spacing: -.75px;
    text-align: center;
}

h2 {
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    line-height: 25px;
    padding-left: 5px;
    padding-bottom: 4px;
}

p {
    padding-left: 5px;
    padding-bottom: 12px;
    font-size: 1em;
    text-indent: 0;
}

.floatleft {
    float: left;
    padding: 6px;
    margin: 0 0 6px 6px;
}

.floatright {
    float: right;
    padding: 6px;
    margin: 0 0 6px 6px;
}

ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/*!* Signup Form *!*/
/*#signup-section form {*/
/*    margin-bottom: 20px;*/
/*}*/

/*#signup-section fieldset {*/
/*    border: 1px solid #5c4033;*/
/*    padding: 15px;*/
/*}*/

/*#signup-section legend {*/
/*    color: #5c4033;*/
/*    font-weight: bold;*/
/*    padding: 0 10px;*/
/*}*/

/*#signup-section label {*/
/*    display: block;*/
/*    margin-bottom: 5px;*/
/*    color: #5c4033;*/
/*}*/

/*#signup-section input[type="text"],*/
/*#signup-section input[type="email"] {*/
/*    width: 100%;*/
/*    max-width: 200px;*/
/*    padding: 5px;*/
/*    margin-bottom: 10px;*/
/*}*/

/*#signup-section input[type="submit"] {*/
/*    background-color: #0066cc;*/
/*    color: #fff;*/
/*    border: none;*/
/*    padding: 10px 20px;*/
/*    cursor: pointer;*/
/*}*/
/* Make sure the section clears the floated image */
#signup-section {
    overflow: auto; /* or use a clearfix approach */
    margin-bottom: 20px; /* optional spacing */
}

/* Floats the image to the right with some left margin */
.floatright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px; /* space below image */
}

/* Existing form styles */
#signup-section fieldset {
    border: 1px solid #5c4033;
    padding: 15px;
    background: url("../images/form_bg.gif") left bottom repeat-x; /* optional */
}

#signup-section legend {
    color: #5c4033;
    font-weight: bold;
    padding: 0 10px;
    border: none;
}

#signup-section label {
    display: block;
    margin-bottom: 5px;
    color: #5c4033;
    font-size: 14px;
    text-align: left;
}

#signup-section input[type="text"],
#signup-section input[type="email"] {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
}

#signup-section input[type="submit"] {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}
/* Testimonials */

.audio-testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 1rem; /* Spacing between columns and rows */
}

.audio-testimonials figure {
    margin: 0;
    padding: 0;
}
.audio-testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.audio-testimonials > h2 {
    grid-column: 1 / -1; /* Makes the h3 span from the first to the last column */
    text-align: center;

}

/* Force the first figure to span both columns */
.audio-testimonials figure:first-of-type {
    grid-column: 1 / -1;  /* Spans both columns */
    justify-self: center; /* Centers the figure horizontally */
}

.audio-testimonials figure {
    margin: 0;
}

.audio-testimonials figcaption {
    font-weight: bold;
    margin-bottom: 5px;
}


.text-testimonials {
    text-align: center;
}

.text-testimonials img {
    display: block;
    margin: 0 auto 10px;
}

.text-testimonials blockquote {
    font-style: italic;
    margin: 10px 0;
}


/* Subscribe Now */
.subscribe-now {
    text-align: center;
    margin: 20px 0;
}

/* Footer */
footer {
    text-align: center;
    width: 100%;  /* Ensures it takes the full width of its parent */
    max-width: 688px; /* Restricts it to the main container width */
    margin: 0 auto; /* Centers it */
    background-color: #E9DFBB;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Adds spacing between elements */
}



.footer-inner {
    /* 1. Make it the center block at 688px */
    width: 688px;
    margin: 0 auto;
    background-color: #E9DFBB;
    position: relative; /* 2. Needed for absolute positioning */
    /* remove display: flex if it causes height issues,
       or ensure children are not floated without a clearfix */
}

/* 3. Attach side gradients to .footer-inner */
.footer-inner::before,
.footer-inner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;               /* Spans the full container height */
    width: 27px;             /* Each side image is 27px wide */
    background-repeat: repeat-y;
}

.footer-inner::before {
    left: -27px;             /* Positions left gradient outside the 688px center */
    background-image: url("../images/left-side.gif");
}

.footer-inner::after {
    right: -27px;            /* Positions right gradient outside the 688px center */
    background-image: url("../images/right-side.gif");
}


.footer-nav {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 5px;
}

#copyright {
    font-size: 14px;
    margin-top: 5px;
}

/* ######### Style for Main Menu ######### */
#chromemenu {
    position: relative; /* Changed to relative for natural page flow */
    width: 688px;
    margin-top: -5px; /* this is to minimizing the annoying gap between the top image and the start of the chromemnue - Adjust as needed */
    /*margin: 0 auto;  Centered horizontally */
}

/* Mobile menu toggle button */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 10px;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
}

#mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #412713;
    transition: all 0.3s ease;
}

#mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

#mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

#chromemenu::before,
#chromemenu::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%; /* Matches the height of the navigation menu */
    width: 27px; /* Width of the side images */
    background-repeat: repeat-y; /* Repeats the image vertically */
}

#chromemenu::before {
    left: -27px; /* Positions left image outside the menu */
    background-image: url("../images/left-side.gif");
}

#chromemenu::after {
    right: -27px; /* Positions right image outside the menu */
    background-image: url("../images/right-side.gif");
}

#chromemenu a {
    text-decoration: none;
}

#chromemenu ul {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
    display: flex; /* Modern flexbox for horizontal layout */
    justify-content: space-around; /* Evenly spaced items */
    align-items: center; /* Vertically centers the <li> elements */
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #412713;
    font-weight: bold;
}

#chromemenu ul li {
    position: relative; /* Positioning context for dropdowns */
}

#chromemenu ul li a {
    display: block; /* Full clickable area */
    padding: 6px 12px 0 12px; /* Top: 6px, Right: 12px, Bottom: 0, Left: 12px */
    color: black;
    font-weight: bold;
    text-decoration: none;
}

#chromemenu ul li a:hover {
    color: #444466; /* Hover color */
}

/* ######### Style for Drop Down Menu ######### */
.dropmenudiv {
    display: none; /* Hidden by default, better than visibility */
    position: absolute;
    top: 100%; /* Directly below parent item */
    left: 0;
    background-color: #F7F7F7;
    border: 1px solid #BBB;
    min-width: 150px; /* Flexible width */
    padding: 10px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Modern shadow */
}

/* Show dropdown on hover */
#chromemenu ul li:hover .dropmenudiv {
    display: block;
}

.dropmenudiv a {
    display: block;
    text-align: left; /* Aligns the text to the left */
    padding: 5px 10px; /* Adds padding for better spacing */
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.dropmenudiv a:hover {
    background-color: #F0F0F0;
}

/* Additional Styles */
.no_underline {
    text-decoration: none;
}


/* Responsive Adjustments */

/* Tablet and below */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    #header-image {
        width: 100%;
        height: auto;
        max-width: none;
    }

    /* Hide decorative side elements on smaller screens */
    main::before, 
    main::after,
    #chromemenu::before,
    #chromemenu::after,
    .footer-inner::before,
    .footer-inner::after {
        display: none;
    }

    main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 15px;
    }

    /* Alternative approach: Hide these sections on mobile to save space */
    #phone, #login {
        display: none;
    }

    /* Or if you want to keep them, make them extremely compact */
    /* Uncomment this section if you prefer to show them:
    
    #phone, #login {
        position: static;
        width: 100%;
        padding: 4px 8px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.9);
        margin-bottom: 3px;
        border-radius: 2px;
        font-size: 10px;
        line-height: 1.1;
    }

    #phone p {
        margin: 0;
        padding: 0;
    }

    #phone br {
        display: none;
    }

    #phone {
        padding: 3px 8px;
    }

    #login {
        padding: 4px 8px;
    }

    #login form {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 3px;
    }

    #login label {
        font-size: 9px;
        margin: 0 2px 0 0;
        display: inline;
    }

    #login input[type="text"],
    #login input[type="password"] {
        width: 60px;
        padding: 2px;
        margin: 0 2px;
        font-size: 9px;
    }

    #login input[type="submit"] {
        padding: 3px 6px;
        font-size: 9px;
        margin: 0;
    }
    
    */

    /* Mobile Navigation */
    #chromemenu {
        width: 100%;
        margin-top: 0;
        position: relative;
        background-color: #E9DFBB;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 10px;
        box-sizing: border-box;
    }

    /* Show hamburger menu on mobile */
    #mobile-menu-toggle {
        display: flex !important;
        position: static;
        margin: 0;
    }

    /* Hide navigation by default on mobile - target the UL directly */
    #chromemenu ul {
        display: none !important;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 60px;
        left: 10px;
        right: 10px;
        background-color: #E9DFBB;
        border: 2px solid #8B4B04;
        border-radius: 8px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
        list-style: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    /* Show navigation when active */
    #chromemenu ul.active {
        display: flex !important;
    }

    #chromemenu ul li {
        width: 100%;
        border-bottom: 1px solid #bba279;
        position: relative;
    }

    #chromemenu ul li:last-child {
        border-bottom: none;
    }

    #chromemenu ul li a {
        padding: 18px 20px;
        text-align: left;
        display: block;
        width: 100%;
        box-sizing: border-box;
        color: #412713;
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
        transition: background-color 0.2s ease;
    }

    #chromemenu ul li a:hover,
    #chromemenu ul li a:active {
        background-color: #bba279;
        color: #fff;
    }

    /* Special styling for the Join button */
    #chromemenu ul li a span {
        color: #0066cc !important;
        font-size: 18px !important;
    }

    /* Mobile dropdown menus */
    .dropmenudiv {
        position: static;
        display: none;
        width: 100%;
        background-color: #bba279;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    /* Don't use hover on mobile - JavaScript will handle this */
    #chromemenu ul li:hover .dropmenudiv {
        display: none;
    }

    .dropmenudiv a {
        padding: 15px 30px;
        border-bottom: 1px solid #a08560;
        background-color: #bba279;
        color: #fff !important;
        font-size: 14px;
        font-weight: normal;
        display: block;
        text-decoration: none;
    }

    .dropmenudiv a:hover,
    .dropmenudiv a:active {
        background-color: #a08560;
    }

    .dropmenudiv a:last-child {
        border-bottom: none;
    }

    /* Typography adjustments for mobile */
    h1 {
        font-size: 28px;
        letter-spacing: -1px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1.3em;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Mobile form adjustments */
    #signup-section fieldset {
        padding: 15px 10px;
        margin: 15px 0;
    }

    #signup-section input[type="text"],
    #signup-section input[type="email"] {
        width: 100%;
        max-width: none;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }

    #signup-section input[type="submit"] {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    /* Mobile testimonials */
    .audio-testimonials {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .audio-testimonials figure:first-of-type {
        grid-column: 1;
    }

    .audio-testimonials audio {
        width: 100%;
    }

    /* Mobile floated elements */
    .floatleft, .floatright {
        float: none;
        display: block;
        margin: 0 auto 15px;
        text-align: center;
    }

    .floatleft img, .floatright img {
        max-width: 100%;
        height: auto;
    }

    /* Footer adjustments */
    footer {
        width: 100%;
        max-width: none;
        padding: 15px;
    }

    .footer-inner {
        width: 100%;
        max-width: none;
    }

    .footer-nav a {
        display: inline-block;
        margin: 5px 10px;
        line-height: 1.5;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
        letter-spacing: -0.5px;
    }

    h2 {
        font-size: 1.2em;
    }

    main {
        padding: 10px;
    }

    /* Make phone/login sections even smaller on tiny screens */
    #phone, #login {
        padding: 4px 8px;
        font-size: 10px;
        margin-bottom: 3px;
    }

    #phone {
        /* Convert to single line for very small screens */
    }

    #phone p {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 0;
    }

    #login input[type="text"],
    #login input[type="password"] {
        width: 70px;
        padding: 2px;
        font-size: 10px;
    }

    #login input[type="submit"] {
        padding: 3px 6px;
        font-size: 10px;
    }

    #login label {
        font-size: 10px;
    }

    #chromemenu ul li a {
        padding: 12px;
        font-size: 14px;
    }

    .dropmenudiv a {
        padding: 10px 15px;
        font-size: 14px;
    }

    #signup-section input[type="text"],
    #signup-section input[type="email"],
    #signup-section input[type="submit"] {
        padding: 10px;
        font-size: 14px;
    }

    .audio-testimonials figcaption {
        font-size: 14px;
    }
}

/* Large screens - maintain desktop layout */
@media (min-width: 769px) {
    /* Ensure desktop layout is preserved */
    .container {
        max-width: 742px;
        margin: 0 auto;
    }

    main {
        max-width: 688px;
    }

    #phone, #login {
        position: fixed;
    }

    /* Hide mobile menu toggle on desktop */
    #mobile-menu-toggle {
        display: none !important;
    }

    /* Show desktop navigation */
    #main-nav-list {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        border: none;
        box-shadow: none;
        gap: 10px;
    }

    /* Reset mobile-specific dropdown styles for desktop */
    .dropmenudiv {
        position: absolute !important;
        display: none !important;
        top: 100% !important;
        left: 0 !important;
        background-color: #F7F7F7 !important;
        border: 1px solid #BBB !important;
        min-width: 150px !important;
        padding: 10px !important;
        z-index: 100 !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    }

    /* Desktop hover behavior */
    #chromemenu ul li:hover .dropmenudiv {
        display: block !important;
    }

    #chromemenu ul li {
        border-bottom: none !important;
    }
}

